const { mode } = require("./webpack.config.prod");
const CopyWebpackPlugin = require('copy-webpack-plugin')
module.exports={
    mode:'development',
    devtool: 'source-map',
    devServer:{
        open:true,
        host:'0.0.0.0',
        allowedHosts: "all"
    },
    plugins:[
        //复制public目录下的文件到dist目录下
        /*new CopyWebpackPlugin({
            patterns:[{from:'preview-app',to:'assets'}]
        })*/
    ]
}